package cn.itrip.biz.service;

import cn.itrip.beans.pojo.ItripHotelRoom;
import cn.itrip.beans.vo.HotelRoomParam;
import cn.itrip.beans.vo.ItripHotelRoomVO;
import cn.itrip.dao.ItripHotelRoomMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description :
 * Created by Li on 2020-12-28 09:20:52
 */
@Service
public class HotelRoomService {
    @Autowired
    private ItripHotelRoomMapper hotelRoomMapper;
    public List<ItripHotelRoomVO> queryhotelroombyhotel(HotelRoomParam hotelRoomParam) {
        return hotelRoomMapper.selectByParam(hotelRoomParam);
    }

    public ItripHotelRoom selectById(Long roomId) {
        return this.hotelRoomMapper.selectById(roomId);
    }
}
